import request from './apiConfig'
const base_url = '/dismissions'

export function getDismDataByPId(pId) {
    return request({
        url: `${base_url}/data/${pId}`,
        method: "GET"
    })
}

export function submitDeparture(dismission) {
    return request({
        url: base_url,
        method: "POST",
        data: dismission
    })
}

export function getDimissionPage(queryInfo) {
    return request({
        url: base_url,
        method: "GET",
        params: queryInfo
    })
}

export function delDismission(id) {
    return request({
        url: `${base_url}/${id}`,
        method: "DELETE"
    })
}